package com.foreknow.demo6;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ExceptionDemo2 {
    public void m1() {
        try {
            InputStream inputStream = new FileInputStream("abc");
            DriverManager.getConnection("","","");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }

    public static void main(String[] args) {
        ExceptionDemo2 exceptionDemo2 = new ExceptionDemo2();
        //        try {
        //            exceptionDemo2.m1();
        //        } catch (FileNotFoundException e) {
        //            e.printStackTrace();
        //        } catch (SQLException e) {
        //            e.printStackTrace();
        //        }
    }
}
